McKinley Rice interview question

45. Jump Game II, Leetcode