Mental Model
When we remove the top element from a heap, we replace it with the last element and then push that element down to restore the heap order.
Analogy: Imagine a pyramid of blocks where the top block is removed. You take the bottom block and place it on top, then slide it down to its correct spot so the pyramid stays stable.
[1]
/ \
[3] [5]
/ \ / \
[7] [9][8][10]
Heap array: [1,3,5,7,9,8,10]
ā top element to extract