Pergunta de entrevista da empresa Parspec

How would you know if the model is overfitting or underfitting?