Minimum Sum Partition Leetcode Sql 50