Cognizant interview question

Explain Heap sorr