Circular Permutation Sample Problem