Domanda di colloquio di Jane Street

Game problem with biased coin