Hexaware Technologies Interview Question

reverse a string