C++ Program to convert Reverse String of given string