An array ‘arr’ contains n integers in the range of 1 to (n+1) where one of the integers is missing. Find the missing integer.
Assumptions: All elements of the array are distinct.
Note: Return 0 if array length is 0.
Example 1:
Input:
3 2 1 7 5 4
Output:
6
Example 2:
Input:
1 2 3 5 6
Output:
4
Solution:
Coming....