Scotiabank interview question

Monte Carlo to approximate Pi