class Solution
{
public:
//Function to check if two strings are rotations of each other or not.
bool areRotations(string s1,string s2)
{
if(s1.size() != s2.size())
return false;
string temp = s1 + s1;
if(temp.find(s2)!= string::npos)
return true;
return false;
}
// geekforgeeks
// forgeeksgeek
};