AppsCode interview question

Hashmap + some other DS