LeetCode: Pascal's Triangle

Approach 1