Pregunta de entrevista de Exabyting

What is garbage collector? How does it work?