Infosys Interview Question

write a code of reverse string