Pregunta de entrevista de HSBC

What are the possible methods to test and avoid overfitting when using Machine Learning model.