Pergunta de entrevista da empresa Hudson River Trading

Question on simulating random variables.