Recro interview question

Closure and its implementation with an example