Jane Street Interview Question

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