J.P. Morgan Interview Question

Gambler ruin problem. To derive the probability to win given.