Jump Game 5 Leetcode Python Problems