Apple Interview Question

It was about the data structure efficient for getting task with the highest priority and priority queue as well.