Gambler's ruin with a fair coin
Asked at Jane Street, Citadel
You start with \20$1$1$1\tfrac12$100$ or go broke.
What is the probability you reach \100$0$?
Show a hint
Let be the success probability starting from \i$. Write the one-step recurrence, or notice that your bankroll is a martingale and think about what stopping does to its expectation.