Index Engines Interview Question

reverse a string