American Express interview question

Reverse a string