3D Systems interview question

Leetcode Question 118: Pascal's Triangle