Whenever you're ready, walk me through how you'd approach this.
Explain the core differences between memory management in C++ and Java.