Pregunta de entrevista de Optum

What is the difference between the stack and the heap?