comefrom: <doocs>1021.Remove Outermost Parentheses_1.py
code: def removeOuterParentheses( s: str) -> str:
      ans = []
      cnt = 0
      for c in s:
          if c == '(':
              cnt += 1
              if cnt > 1:
                  ans.append(c)
          else:
              cnt -= 1
              if cnt > 0:
                  ans.append(c)
      return ''.join(ans)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_2 = [ ]
      var_4 = 0
      for var_5 in var_0 :
          if var_5 == '(' :
              var_4 += 1
              if var_4 > 1 :
                  var_2.append ( var_5 )
          else :
              var_4 -= 1
              if var_4 > 0 :
                  var_2.append ( var_5 )
      return ''.join ( var_2 )
  