Wrote own string class reverse method.