Yahoo interview question

Reverse a input string.