Infosys interview question

coding questions