OYO interview question

Coding Q1. Find missing number in a given array from 1 to n