Google interview question

how to hashmap and explain it