Pregunta de entrevista de Jane Street

Combinatorics, expected values and probability