Monotype interview question

Java programming, hashmap and arrays