Meta interview question

implement a priority queue from scratch