Pergunta de entrevista da empresa Zyper

Find the missing number from the 1 - n numbers, the array had n-1 elements.