Painters Partition And Split Array Leetcode