Pergunta de entrevista da empresa Vista

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