How To Solve Circular Permutation With Restriction