Nokia interview question

How to avoid overfitting in machine learning?