Accenture Interview Question

pascal triangle coding question in the 2nd round