C++ exercise: reverse a string
Here is your first exercise: write a function in C++ that reverses a string.