Capital One interview question

Some kind of Hashmap problems