Cognizant Interview Question

series question