Domanda di colloquio di Jane Street

Probability Question: Gambling game with a coin