Jump Game Problem Leetcode Python Beginner