Reverse String In Cpp Function Pointer