Pergunta de entrevista da empresa Anduril

What is the difference between a heap and a stack?