parameters: (self, arr)
return_statement: return result
docstring: :type arr: List[int]
          :rtype: int
docstring_summary: :type arr: List[int]
          :rtype: int
docstring_tokens: : type arr : List [ int ] : rtype : int
function: def maxChunksToSorted(self, arr):
          """
          :type arr: List[int]
          :rtype: int
          """
          result, max_i = 0, 0
          for i, v in enumerate(arr):
              max_i = max(max_i, v)
              if max_i == i:
                  result += 1
          return result
function_tokens: def maxChunksToSorted ( self , arr ) : result , max_i = 0 , 0 for i , v in enumerate ( arr ) : max_i = max ( max_i , v ) if max_i == i : result += 1 return result