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.
Watch your tabs here. It will help make your code easier to read and edit in the future.