Cognizant interview question

How would you solve problem