Solution to Reverse String