Datacom Systems Interview Question

How garbage collection works in C#?