Missing Number
Medium · Math
An array contains every whole number from 1 to n exactly once, except one number that is missing. The numbers can be in any order, so the array has n - 1 items.
Write a function missingNumber that returns the missing number.
Next: Palindrome Check