Bairong interview question

how to prevent overfitting for model?