Cognizant interview question

Technical questions