Maximum Sum Path Leetcode 150 Solution