Parspec interview question

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