Pregunta de entrevista de Hudson River Trading

Question on simulating random variables.