Minimum Sum Partition Leetcode Python Interview