Pergunta de entrevista da empresa Google

Based on HashMap and Sorting