BMO Financial Group interview question

Dynamic programming. Jump steps. Each jump can be 1/2/3.