参考题解:
https://leetcode.cn/problems/circular-permutation-in-binary-representation/solution/xun-huan-ma-pai-lie-by-leetcode-solution-6e40/