Uber Interview Question

Sorting elements using heap algorithm.