Issue , , , ,, ,, , ,,,, , , , , , , , , ,, , , , ,, , ,

sir again output is same as before ************ for 1 2 3 4 5 6 output should be equal to 6 5 3 4 2 1

and output for our code are 6 4 5 1 3 2

@Nitin-Mishra-2380486738834604,

There can be multiple max heaps for the same inputs.
Example for the input:
4
1 2 3 4
The 3 possible max heaps are:

    4 
   / \ 
  3   2 
 / 
1

    4 
   / \ 
  2   3 
 / 
1

    4 
   / \ 
  3   1 
 / 
2