EY interview question

Monte Carlo method