Nutanix interview question

Difference between stack and heap