Tuenti Interview Question

Write a code, which represents the Iterator pattern!