Pregunta de entrevista de Samsung Electronics

Explain the difference between the stack and heap.