Infosys interview question

I did not pass the coding test so no interview.