Getting car insurance can be challenging if your driving record isn't spotless, you're a new driver or you have bad credit.