Given an array, A, of integers, print N's elements in reverse order as a single line of space-separated numbers.
static int[] reverseArray(int[] array) {
int end = array.length-1;
for(int i=end; i>=0; i--) {
a[i] = a[i] + " ";
}
return String.valueOf(a);
}