Oracle interview question

Implement priority queue using heap