Pregunta de entrevista de Jane Street

brain teasers with some probability/combinatorics