HARMAN interview question

hashmap working