Quantell interview question

How to manage memory in c++?