ruby solution for Euler problem 42