Working on Array problems from Chapter 4