Google interview question

Reverse a hash map and solve it