Infosys interview question

Hackerrank questions