Painters Partition And Split Array Leetcode Problems Sql