Whenever you're ready, walk me through how you'd approach this.
Explain how memory is managed in Python, C++, and Java.