Cognizant interview question

series question