Question d’entretien chez Goldman Sachs

Write the algorithm for heap up.