Minimum Sum Partition Leetcode 150