Mr. Young's Picture Permutations

POJ - 2279