Partition Array into Disjoint IntervalsThis is a solution to the Partition Array into Disjoint Intervals problem on LeetCode.