Pregunta de entrevista de Nubank

how to handle overfitting issues random forest vs Gradient Boost