Uber interview question

Sorting elements using heap algorithm.