https://leetcode.com/problems/count-the-repetitions/description/
找循环节
https://www.cnblogs.com/grandyang/p/6149294.html