Infosys interview question

Nothing was unexpected.