Heap Output Doubt

Not giving right answer

What problem are you facing @Kinjal? as I see correct output.

Oh. I did correction by myself. That’s why, it seems like right to you now.

Great, you may mark doubt as resolved if clear.

Okay…