How would you do it with a one-dimensional array?