Cognizant interview question

technical