Reverse A String Leetcode Solution