comefrom: <doocs>0769.Max Chunks To Make Sorted_1.py
code: def maxChunksToSorted( arr: List[int]) -> int:
      mx = ans = 0
      for i, v in enumerate(arr):
          mx = max(mx, v)
          if i == mx:
              ans += 1
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_2 = var_1 = 0
      for var_3 , var_4 in enumerate ( var_0 ) :
          var_2 = max ( var_2 , var_4 )
          if var_3 == var_2 :
              var_1 += 1
      return var_1
  