Cambridge Consultants Interview Question

Write a C++ function to reverse a string.