IBM Interview Question

reverse a string in C++