comefrom: <doocs>1190.Reverse Substrings Between Each Pair of Parentheses_1.py
code: def reverseParentheses( s: str) -> str:
      stack = []
      for c in s:
          if c == ")":
              tmp = []
              while stack[-1] != "(":
                  tmp += stack.pop()
              stack.pop()
              stack += tmp
          else:
              stack.append(c)
      return "".join(stack)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_1 = [ ]
      for var_2 in var_0 :
          if var_2 == ")" :
              var_3 = [ ]
              while var_1 [ - 1 ] != "(" :
                  var_3 += var_1.pop ( )
              var_1.pop ( )
              var_1 += var_3
          else :
              var_1.append ( var_2 )
      return "".join ( var_1 )
  