Spotify Interview Question

Garbage collector in Java, algorithmic problems which you can already find online