Split Array Largest Sum Leetcode Python