T-Systems interview question

How to avoid overfitting ?