Cognizant interview question

problem solving questions(logical based)