Onity Group Interview Question

C++ memory allocation