MindGeek interview question

Write a closure.