Check if first word is rotation of second

Check if first word is rotation of second

Your input is two words separated by a comma. Determine if the second word is a rotation of the first word.

Example 1:


input data:
Hello,lloHe
output:
True

Example 2:


input data:
seda,ades
output:
False
View Java Solution

Seda
Seda Kunda is a web designer and developer with a degree in Computer Science and a great passion for code. Besides code, she enjoys pepperoni pizza, watching the bachelor and sleeping in on Saturdays.
Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn