Pregunta de entrevista de Jane Street

Coin flips, expectation and probability stuff