Maximum Sum Path Leetcode Python Beginner