Infosys interview question

Awesome