Solution for Project Euler, problem #11 written in Ruby