Updated arrays.rb with solutions