Minimum Path Sum Triangle Leetcode Solution 1