Frage im Vorstellungsgespräch bei Deutsche Bank

Write some code for creating an incrementing counter using a closure?