Pergunta de entrevista da empresa WSC Sports

Find missing number in an array with n-1 cells and number from 1 to n(missing one)