Interview tasks: unique_iterator