Project Euler #240: Top Dice