Split Array Largest Sum - Leetcode 410 - Python