Samsung Electronics interview question

Explain the difference between the stack and heap.