Bloomberg Interview Question

Memory management in C++ and Java.