Pregunta de entrevista de Bloomberg

Iterating through an array to find a missing number