Jane Street interview question

Some probability puzzles