Add solution to Euler 8 in Ruby