reverse string.cpp