Infosys Interview Question

reverse a string