Given two strings s and goal, return 'true' if goal is a rotation of s.
A rotation means you can rotate s by k positions (0 ≤ k < len(s)) to obtain goal.
Both strings must have the same length.
Input: Two comma-separated strings: s and goal.
Output: Return 'true' if goal is a rotation of s, otherwise 'false'.
Input: abcde,cdeab
Output: true
Explanation: Rotating 'abcde' by 2 gives 'cdeab'.Input: abcde,abced
Output: false
Explanation: No rotation of 'abcde' gives 'abced'.Input: abc,abc
Output: true
Explanation: Zero rotation.1 <= s.length, goal.length <= 100consist of lowercase English letters