Nokia Interview Question

Explain stack and heap memory allocation