Answer to array exercise 1