Consider the following instance variable and incomplete method. The method go shouldreturn the difference between the smallest and largest values in the array. The array willcontain values that range from Integer.MIN_VALUE to Integer.MAX_VALUE.private int[] array; //assume the array contains valuespublic int go(){int diff = 0;/ blank /return diff;}Which of the following code segments shown below could be used to replace/ blank / so that method go will work as intended?I.int small = 0, big = 0;for( int i=0; i array[i] )big = array[i];}diff = big - small;II.int small = Integer.MAX_VALUE;int big = Integer.MIN_VALUE;for( int i=0; i array[i] )small = array[i];if( big < array[i] )big = array[i];}diff = big - small;III.int small = Integer.MAX_VALUE;int big = Integer.MIN_VALUE;for( int i=0; i array[i] )big = array[i];}diff = big - small;