CACI International interview question

Explain the difference between the stack and heap