Implement a program to find the missing number in an array of size n containing numbers from 1 to n+1.
HardProblem Statement
Implement a program to find the missing number in an array of size n containing numbers from 1 to n+1.
Sample Input
arr = {2, 3, 1, 5}Sample Output
Missing Number = 4
Limits
Time: 2s · Memory: 256 MB