rewrite leetcode triangle