Question d’entretien chez Bending Spoons

Explain the difference between overfitting and underfitting. How can you prevent them?