Jane Street Interview Question

Coin flips, expectation and probability stuff