Frage im Vorstellungsgespräch bei Galil Motion Control

How would you write a basic computer algorithm to count from 1 to 15?