Jane Street interview question

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