Juniper Networks interview question

Heap sort.