Project Euler 8 solution.