Implement a method that takes an instance of
ListIterator and creates a new list in the reversed order. The given iterator is on the first element of a list. Use only the iterator to write a solution.