Pregunta de entrevista de General Mills

write code for heap complexity of heap