J.P. Morgan interview question

Monticalo simulation