Pergunta de entrevista da empresa HireCraft

Find the missing number in an array of 1-n?