Updated arrays.rb with solutions

Fixing pull request from earlier today.