Pergunta de entrevista da empresa Cornerstone OnDemand

Difference better stack and heap?