Pregunta de entrevista de Tomsoft

How does garbage collection work in .NET framework.