First solution to Problem 1 in Ruby
Made Ruby example more in line with convention
Added functional method to Problem 1 solution in Ruby