915. Partition Array into Disjoint Intervals - Solutions and Explanation | Vultr Docs