Pregunta de entrevista de Box8

Frog jump from Leetcode Dynamic Programming question