Leetcode 410 Split Array In Python