You are given an integer array arr of length n that is a permutation of the integers in the range [0, n - 1].
We split arr into some number of chunks (partitions) and sort each chunk individually. After concatenating the sorted chunks, the result must equal the sorted array.
Return the largest number of chunks we can make to sort the array.