rewrite leetcode pascal triangle i