Infosys interview question

To write some simple codes