Pascal Triangle Leetcode Problem