consider a complete binary tree 'T' with key of root node be 'P'. It is given that the left and right subtree of 'P' satisfies the min-heap property. What is the time taken to convert the given tree 'T' to max-heap?
a. O(log n)
b. O(n)
c. O(nlog n)
d. O(n2)