Pregunta de entrevista de Appfoster

Programming question asked in 2nd round - Find the Missing Number in an Array?