BMO Financial Group Interview Question

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