Split Array Largest Sum Leetcode Solution Python