Explain Python, Java, and Memory Management | Microsoft Interview Question