結果 : circular permutation problem with solution