ION Group interview question

Q. Difference between heap and stack Q. What is a deadlock