Infosys interview question

puzzles