Qualcomm interview question

Implement priority queue using linked list.