Xoriant interview question

Hashmap