Domanda di colloquio di Red Hat

Question was based on Heap question