Jump Game 4 Leetcode Problems On Strings In Python