class Solution:
    """
    @param str: An array of char
    @param offset: An integer
    @return: nothing
    """
    def rotateString(self, str, offset):
        # write your code here
        if offset == 0:
            return str

        return str[-offset:] + str[:-offset]

if __name__ == '__main__':
    solution = Solution()
    print solution.rotateString('abcdefg', 3)
7fb097f4bc9cda50c8ae983e56e91e0789d5f489
class Solution:
    """
    @param str: An array of char
    @param offset: An integer
    @return: nothing
    """
    def rotateString(self, str, offset):
        # write your code here
        if offset == 0:
            return str

        return str[-offset:] + str[:-offset]

if __name__ == '__main__':
    solution = Solution()
    print solution.rotateString('abcdefg', 3)