Add solution to Euler 7 in Ruby