LeetCode: 769 Max chunks to make sorted

Problem Statement