Domanda di colloquio di Infosys

How linkedList works and what is stack vs heap?