Meta interview question

Heap sorting algorithm for k sorted array