Minimum Sum Partition Leetcode Solutions