https://profilpelajar.com/en/Cyclic_permutation_of_integer