2369. Check if There is a Valid Partition For The Array - Solutions and Explanation | Vultr Docs