Cornerstone OnDemand interview question

Difference better stack and heap?