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_5 = var_3 = 0
      for var_7 , var_8 in enumerate ( var_0 ) :
          var_5 = max ( var_5 , var_8 )
          if var_7 == var_5 :
              var_3 += 1
      return var_3
  