Updated fizz_buzz_array.rb code to use array methods.