comefrom: <doocs>1957.Delete Characters to Make Fancy String_1.py
code: def makeFancyString( s: str) -> str:
      ans = []
      for c in s:
          if len(ans) > 1 and ans[-1] == ans[-2] == c:
              continue
          ans.append(c)
      return ''.join(ans)
masked: def sample_funcname ( var_0 : str ) -> str :
      var_2 = [ ]
      for var_3 in var_0 :
          if len ( var_2 ) > 1 and var_2 [ - 1 ] == var_2 [ - 2 ] == var_3 :
              continue
          var_2.append ( var_3 )
      return ''.join ( var_2 )
  