Refactor Euler1.rb
Add Euler2 solution in Ruby