DigiOutsource interview question

the difference between the heap and stack in memory management