Max Chunks to Make Sorted

mediumSolve on LeetCode