@Kapil

I think u have written in reverse manner

array with ascending order results in : Min Heap

and with descending order results in: Max Heap

I think u have written in reverse manner

array with ascending order results in : Min Heap

and with descending order results in: Max Heap