Cognizant interview question

Garbage collection