Bloomberg interview question

How garbage collection works