Swap the first and last elements of the array.: Easy Programming Problem