Amazon Robotics Interview Question

implement a priority queue