Important Array Leetcode Problems Python