Minimum Sum Partition Leetcode Python Basic Programs