Meta Interview Question

implement a priority queue from scratch