For the given method header, make a copy of the array passed…

For the given method header, make a copy of the array passed in that squares(i.e. multiplies by itself) every other VALUE in the array, starting with the first element. You may assume the passed in array will not be null and contain at least 2 values.   For example, if the input array is: 4 5 -2 -3 9 Then the returned COPY of the array (not the original array) would be:  16 5 4 -3 81 Here is the method header: public int[] square(int[] input) (You do not have to include the method curly braces.)   Make sure to select the ‘Preformatted’ style from the dropdown so your code is formatted clearly. DO NOT USE THE TAB KEY WHEN WRITING CODE AS YOU MAY ACCIDENTALLY SUBMIT YOUR EXAM. USE THE SPACE BAR INSTEAD.