Gambler's ruin, reach 80 from 30, and how long it takes
Asked at Jane Street, Citadel
You start with \30$1$1$1\tfrac12$80$ or go broke.
What is the probability you reach \80$0$? And how many bets do you expect to make before stopping?
Show a hint
For the probability, use the martingale shortcut: with fair bets, expected bankroll is conserved. For the duration, there is a clean closed form for the fair game.
Your answer
This one is open-ended. Work it through, then check your reasoning against the full solution.