makeEnds: first and last

Given an array of ints, return a new array of length 2 containing the first and last elements of the original. The original will be length 1 or more. Step through makeEnds: whatever the length, the last element is at nums.length-1.