String Reverse Function In Cpp