Return a new array like the original but with the first and last items exchanged. An array of one item comes back unchanged.
int[] swapEnds(int[] values)
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.