day 1 array solutions

passed rspec tests