Leetcode 2498. Frog Jump II | Hello Interview