Wishlink interview question

implement hashmap with an array