Apple Interview Question

Find bugs in a naive implementation of a priority queue.