Amazon Interview Question

Sort hashmap without using for loop