LeetCode
Pascal’s Triangle
Click
here
for an explanation.