Persistent Systems Interview Question

Write a small program with a for loop to do a specific task?