Iterator Design Pattern
In which an Iterator is used to traverse a Container and access the container’s elements.
Resources: https://refactoring.guru/design-patterns/iterator https://en.wikipedia.org/wiki/Iterator_pattern
Motivation
Implementation
Look at CS247 Lectures