Pregunta de entrevista de Pine River Capital Management

How does garbage collection work?