Question d’entretien chez Capital One

How do you know when a model is underfitting/overfitting?