Nubank Interview Question

how to handle overfitting issues random forest vs Gradient Boost