Fast Enterprises interview question

Write a function on how to reverse a string?