Minimum Sum Partition Leetcode Sql 150