Fast Enterprises Interview Question

Write a function on how to reverse a string?