Oracle Interview Question

Implement priority queue using heap