WorldQuant Interview Question

Coin game in context of prob