comefrom: <doocs>0071.Simplify Path_1.py
code: def simplifyPath( path: str) -> str:
      stk = []
      for s in path.split('/'):
          if not s or s == '.':
              continue
          if s == '..':
              if stk:
                  stk.pop()
          else:
              stk.append(s)
      return '/' + '/'.join(stk)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_2 = [ ]
      for var_5 in var_0.split ( '/' ) :
          if not var_5 or var_5 == '.' :
              continue
          if var_5 == '..' :
              if var_2 :
                  var_2.pop ( )
          else :
              var_2.append ( var_5 )
      return '/' + '/'.join ( var_2 )
  