Minimum Sum Partition Leetcode Solutions Two