ServiceNow interview question

3. Write a program to print the pascal triangle.