comefrom: <doocs>1876.Substrings of Size Three with Distinct Characters_1.py
code: def countGoodSubstrings( s: str) -> int:
      count, n = 0, len(s)
      for i in range(n - 2):
          count += s[i] != s[i + 1] and s[i] != s[i + 2] and s[i + 1] != s[i + 2]
      return count
masked: def sample_funcname ( var_0 : str ) -> int :
      var_4 , var_6 = 0 , len ( var_0 )
      for var_9 in range ( var_6 - 2 ) :
          var_4 += var_0 [ var_9 ] != var_0 [ var_9 + 1 ] and var_0 [ var_9 ] != var_0 [ var_9 + 2 ] and var_0 [ var_9 + 1 ] != var_0 [ var_9 + 2 ]
      return var_4
  