Minimum Sum Partition Leetcode 75 Solution