Jane Street interview question

Coin flips, expectation and probability stuff