Report question

Question: algorithm to find square chained permutations