Accenture Interview Question

explain priority queue