CAE USA Interview Question

Write a function that reverses a string