Box8 interview question

Frog jump from Leetcode Dynamic Programming question