RedSeal interview question

Java hashmap usages