Domanda di colloquio di Microsoft

How memory is allocated in the stack and heap