Arrays And Hashing Leetcode 1509