Cognizant Interview Question

Some Infosys puzzles