Nokia Interview Question

How to avoid overfitting in machine learning?