Question d’entretien chez Dropbox

Using a binary heap categorize an array.