Working Of Priority Queue