Amazon Interview Question

Explain Overfitting, when does it happen? how can you avoid it