Yahoo interview question

Reverse a string