J.P. Morgan Interview Question

How do you prevent overfitting?