Infosys Interview Question

Puzzle and Reasoning.