Knoldus Software interview question

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