Amazon interview question

How would you prevent overfitting