Infosys interview question

The output of a code. Puzzles based on logical thinking