John Horton Conway1 has a ten digit number, abcdefghij. Each of the digits is different, and

Write a predicate solution/1 that unifies its argument with the solution as a list of numbers.

?- solution(X).
X = [...] ;