ServiceNow Interview Question

write code for Pascal triangle.