Intuit Interview Question

design a system with priority queue.