Only build heap will not satisfy the given condition. I guess condition says that array should me halfway sorted ( a[i/2] <= a[i] ).
Using build heap only :
But array is not halway sorted so it still needs n/2logn time to do so.
This is what i think.
Help in this.