comefrom: <doocs>1375.Number of Times Binary String Is Prefix-Aligned_1.py
code: def numTimesAllBlue( flips: List[int]) -> int:
      ans = mx = 0
      for i, v in enumerate(flips, 1):
          mx = max(mx, v)
          if mx == i:
              ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_5 = var_3 = 0
      for var_7 , var_9 in enumerate ( var_0 , 1 ) :
          var_3 = max ( var_3 , var_9 )
          if var_3 == var_7 :
              var_5 += 1
      return var_5
  