Medium
Is It a Rotation?
Read two words of equal length. Print
Yes if the second can be made by moving some letters from the front of the first to its end (like python → honpyt), else No.Input
Two lines.
Output
Yes or No.
Sample 1
Input
python honpyt
Output
Yes
Sample 2
Input
abc acb
Output
No
Output appears here