Questrade interview question

How does garbage collection work?