Jump Game Problem Leetcode Solutions Java