DMI interview question

hashmap working