Intel Corporation interview question

Reverse a string and return it.