P1 (30 points)Consider an array of length n that contains uniqueintegers between 1 and n+1. For example, an array A1 of length 5might contain the integers 3, 6, 5, 1, and 4. In an array of thisform, one number between 1 and n+1 will be missing. In A1, theinteger 2 is missing from the array. As another example, considerthe array A2 that contain the integers 4, 7, 5, 2, 6, and 1. A2 hassize 6, contains integers in the range of 1 to 7. In A2, theinteger 3 is missing from this array.
Write a Java method static int findMissing(int []a)
PayPal Gateway not configured
PayPal Gateway not configured