Infosys interview question

How linkedList works and what is stack vs heap?