Pergunta de entrevista da empresa Jane Street

brain teasers with some probability/combinatorics