Infosys interview question

There were 3 coding questions