Accenture interview question

pascal triangle coding question in the 2nd round