Meta Interview Question

I had two coding questions, easy and medium. One solution was based on the binary search logic, and another used a priority queue.