Samsung Electronics Interview Question

Explain the difference between the stack and heap.