StackPros interview question

How can we prevent overfitting?