Minimum Sum Partition Leetcode Two