#582 Yet Another Permutation Problem 2