Qualcomm Interview Question

Implement priority queue using linked list.