FactSet interview question

priority queue and the collision in hash function