Jane Street interview question

brain teasers with some probability/combinatorics