Pregunta de entrevista de Qube Research & Technologies

First round: Gamblers ruin problem. Second round: dynamic programming.