Coding Ninjas interview question

Data Structures and Algorithm: Pascal's Triangle