HP Inc. Interview Question

What is the difference between a stack and heap?