Pregunta de entrevista de Knight Capital

identify a missing entry of an array with pattern