Pergunta de entrevista da empresa Jane Street

Combinatorics, expected values and probability