Reverse String Using Stack Java