Cognizant Interview Question

problem solving questions(logical based)