General Mills Interview Question

write code for heap complexity of heap