Maximum path sum in a triangle leetcode