eBay interview question

Heap construction