Microsoft interview question

How does Garbage collection work in .Net?