Added string invert without text buffer solution (C++)