Jane Street Interview Question

brain teasers with some probability/combinatorics