Question d’entretien chez General Mills

write code for heap complexity of heap