Goldman Sachs interview question

Garbage Colector