Reverse A String Leetcode Question