Added solutiosn to arrays.rb
added solutions to set1.rb