Leetcode Easy Array Questions Hackerrank Python Problem