Google Interview Question

Reverse a hash map and solve it