Leetcode Reverse String Solution