Dell Technologies interview question

write a code for priority queue