Pergunta de entrevista da empresa Infosys

How linkedList works and what is stack vs heap?