Coforge interview question

how hashmap work