Pergunta de entrevista da empresa Bloomberg

Problem that required parsing input into a hash table and then sorting it.