Cyclic shifts in permutation | CodeChef