Cognizant interview question

technical questions