Pregunta de entrevista de Nutanix

Difference between stack and heap