Gambler's ruin when the coin is biased against you
Asked at Jane Street, Citadel
You start with \10$1$1p = 0.4$1q = 0.6$20$0$.
What is the probability you reach \20$ before going broke? Compare it to the fair-coin case.
Show a hint
For a biased walk the hitting probability is no longer linear in your bankroll; it is governed by the ratio and grows exponentially. Use the ruin formula.