Barclays Interview Question

data structures ,priority queue implementation