HARMAN Interview Question

Difference between stack and heap