Define a method named print(DataStructureIterator iterator)