Arrays And Hashing Leetcode Contest Solution