Infosys interview question

write a code of reverse string