Jump Game Problem Leetcode Python Pandas