Infosys interview question

coding ques to reverse string