Jane Street Interview Question

Combinatorics, expected values and probability