Planview interview question

Design an algorithm to find first repeating value in an ordered collection