Cognizant interview question

algorithmic questions and logical questions