T-Systems Interview Question

How to avoid overfitting ?