Pergunta de entrevista da empresa Jane Street

Probability in the first round, coding in the second round.