Leetcode Array Basic Questions In Python