Pergunta de entrevista da empresa Knoldus Software

Given elements from 1 to n, find the missing number.