Infosys interview question

Nothing Unexpected