Infosys Interview Question

the puzzles