Question d’entretien chez Deutsche Bank

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