Write a program to check if two strings are rotations of each other.
MediumProblem Statement
Write a program to check if two strings are rotations of each other.
Sample Input
String1: "hello", String2: "lohel"
Sample Output
true
Limits
Time: 2s · Memory: 256 MB