Luxoft Interview Question

How closures works in Swift?