Create the method isSubstring in which it checks if one word is the substring of the other. Now write a method to see if one string is the rotation of the other (a rotation meaning "banana" ==> "nabana", which is a rotation to the right by 2) by using only one method call to isSubstring
Create the method isSubstring in which it checks if one word is the substring of the other. Now write a method to see if one string is the rotation of the other (a rotation meaning "banana" ==> "nabana", which is a rotation to the right by 2) by using only one method call to isSubstring