BMW Group interview question

How memory management works in c++