Pergunta de entrevista da empresa Jane Street

Coin flips, expectation and probability stuff