Iterator Interface (IIterator<T>):?
- The IIterator<T> interface defines the contract for all iterators. It ensures
that all iterators implement the basic functionality of checking for the next
element (HasNext()) and returning the next element (Next()).