Play Versus interview question

Data structure sorting using hash maps