Amazon interview question

Sort hashmap without using for loop