Apple Interview Question

question about a heap