Pergunta de entrevista da empresa RTX

What's the difference between a heap and a stack?