BlackRock interview question

Write an algorithm that sorts a hashmap