Question

Write a function that finds the missing number in an array containing n-1 elements ranging from 1 to n?

Login to Submit

Examples

Input: [1, 2, 4, 5]
Output: 3

Input: [2, 3, 1, 5]
Output: 4

Input: [1, 3]
Output: 2