Luxoft interview question

Explain the garbage collection