Domanda di colloquio di Box8

Frog jump from Leetcode Dynamic Programming question