Infosys Interview Question

How linkedList works and what is stack vs heap?