How would you find the missing number in an array of length 99 containing unique natural numbers from 1 to 100?
Implement find_missing(nums), where nums contains 99 distinct integers from 1 through 100 with exactly one value absent. Return the missing integer. The solution should run in O(n) time and use O(1) extra space.
Input: a list of 99 integers. Output: the missing integer.
def find_missing(nums):