Stack Reverse String Leetcode Question