Luxoft interview question

How closures works in Swift?