J.P. Morgan interview question

How do you prevent overfitting?