Google interview question

They asked about stack and heap