3 +4 +5 +4 +5 +3 +5 +3 +4 +4 is 40, not a multiple of 30, so addition doesn't work. When I initially thought of the problem, I thought you would multiply the digits together, as long as they were multiples of 2, 3 or 5. That would net you pretty big answers. But if the answer is supposed to be a permutation of digits, then I would just work at it from that angle. Find the permutations and test them. It kind of sucks that the test case did not give an answer. I mean, it's possibly 864000 or something bigger.