For this Question: Implement the function <code>sumMaxMin</code>, which should take 5 numbers as input arguments.
The function should return the sum of max and min elements of those 5 numbers (Use JS In built functions)Function will take 5 arguments which will be numbers.Function will return a number which is the sum of min and max element of those 5 arguments.console. log(sumMaxMin(100, 100, -200, 300, 0)) // prints 100 because 300+(-200) = 300-200

console. log(sumMaxMin(1, 3, 2, 4, 5)) // prints 6 because 1+5

console. log(sumMaxMin(-1000, -2000, -10, -120, -60)) // prints -2010 because -2000 min and -10 max sums to -2010, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    public static void main (String[] args) {

       Scanner sc=new Scanner(System.in);
        int[] arr1=new int[5];
        for(int i=0;i< arr1.length;i++)
            arr1[i]=sc.nextInt();
        Main m=new Main();
        System.out.println(m.sumMaxMin(arr1));
    }
   public static int sumMaxMin(int []array){
            int max =array[0];
            int min=array[0];
            int sum1=0;

            for (int i = 0; i < array.length; i++) {
                if (array[i] > max) {
                    max = array[i];
                }
                if (array[i] < min) {
                    min = array[i];
                }

            }
            sum1= max +(min);
            return sum1;
    }

}, In this Programming Language: Java, Now tell me if this Code is compilable or not?