Wix Interview Question

pascal triangle question in leetcode