BT Group interview question

JVM and garbage collection