General Mills interview question

write code for heap complexity of heap