Check if one string is a rotation of another string efficiently.
Constraints
Example
```python
>>> is_rotation("abc", "bca")
True
>>> is_rotation("abc", "acb")
False
>>> is_rotation("", "")
True
>>> is_rotation("a", "a")
True
```
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints