AppsCode Interview Question

Hashmap + some other DS