Nokia interview question

Explain stack and heap memory allocation