Use reverse iterators.