s is the sum of the array you have.
the missing will be: 5050-s
let me explain....
the sum of the numbers from 1 to 100 will be..
Now if s is the sum of the numbers you have, you can simply find the missing number by substracting s from 5050.