Jane Street Interview Question

Probability q on coin flipping