Infosys interview question

sanity