Priority Queue STL Quiz Q6

Not able to clearly understand what is happening in the program and how the correct option is A