Minimum Sum Partition Leetcode Sql Top