The Iterator pattern provides a way to traverse a collection sequentially without exposing its internal structure. It's so fundamental that it's built into most modern languages (for-of loops, iterators, generators).
Abin da Iterator pattern ke yi
ITERATOR → access elements of a collection SEQUENTIALLY without exposing its internals:
→ provides a standard way to traverse (next element, has more?)
→ the collection's internal structure (array, tree, linked list) is HIDDEN
→ decouples traversal logic from the collection
→ "iterate without caring how the collection is structured"
