Minimum Sum Partition Leetcode Solutions Cpp