Appfoster interview question

Programming question asked in 2nd round - Find the Missing Number in an Array?