A rotation moves some characters from the front of a string to its back, keeping their order ("abcde" rotated by 2 is "cdeab"). Return True if goal can be obtained from s by some number of rotations (zero counts).
Example 1
Input:
is_rotation('abcde', 'cdeab')
Output:
True
Example 2
Input:
is_rotation('abcde', 'abced')
Output:
False
0 <= len(s), len(goal) <= 3 * 10**5No results yet
Run your code to check it against the examples, or submit to run every test.