Amazon Interview Question

Reverse a string