Accenture Interview Question

What is garbage collection and how does it work?