Bloomberg interview question

Hash map and sorting