Cognizant interview question

Technical