King interview question

Difference between heap and stack