Pergunta de entrevista da empresa Box8

Frog jump from Leetcode Dynamic Programming question