Apps Associates Interview Question

write the logic for pascal triangle???