Reverse String In Cpp Function Declaration