Jane Street interview question

Probability q on coin flipping