Onity Group interview question

C++ memory allocation