LeetCode Triangle.