Cambridge Consultants interview question

Write a C++ function to reverse a string.