Maximum Sum Path Leetcode Problems On Loops