Homework solved using ArrayList and Iterators
Version 0