leetcode triangle