1# Runtime: 33 ms, faster than 90.10% of Python3 online submissions for Rotate String.2# Memory Usage: 13.8 MB, less than 97.64% of Python3 online submissions for Rotate String.345class Solution:6def rotateString(self, s: str, goal: str) -> bool:7for x in range(len(s)):8s = s[-1] + s[:-1]9if goal == s:10return True11return False