Apple interview question

Find bugs in a naive implementation of a priority queue.