UBS interview question

Monte carlo methods example, basic operation