Reverse String Without Using String Functions Cpp