Deutsche Bank interview question

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