Please answer this

Sir hasnt teach how to make priority queue and this kind of implementation which he has used in this example…then how will i understand this…