Nokia Interview Question

Based on Hashmap and basic array questions.