Apple interview question

question about a heap