Planview Interview Question

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