Maximum Sum Path Leetcode Problems Sql Server