Pascal's Triangle(LeetCode 118):

Problem