Arrays And Hashing Leetcode Solutions Python