Implement a function to check if two strings are rotations of each other.
MediumProblem Statement
Implement a function to check if two strings are rotations of each other.
Sample Input
"abcd", "dabc"
Sample Output
true
Limits
Time: 2s · Memory: 256 MB