completed array_problems/arrays.rb

I also added a method to eliminate non-number elements of array and called that at the beginning of each of the three methods.