Permutations II, same as Permutations, exact solution