Google Interview Question

Based on HashMap and Sorting