Pregunta de entrevista de Vista

How to find a missing number for an array for number from 1-1000