Pregunta de entrevista de Planview

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