Minimum Path Sum Tree Leetcode