Coding Ninjas Interview Question

Data Structures and Algorithm: Pascal's Triangle