Domanda di colloquio di Morgan Stanley

What is the difference between a stack and a heap?