Pergunta de entrevista da empresa Planview

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