There are 2 strings , how can we check if one is a rotated version of another ?
For Example : hello --- lohel
One simple solution is by co
co
A very straightforward solution is to rotate one of the words n times, where n is the length of the word. For each of those rotations, check to see if the result is the same as the other word.