#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
#
# @param str string字符串
# @param n int整型
# @return string字符串
#
class Solution:
    def LeftRotateString(self, ss: str, n: int) -> str:
        # write code here
        if not ss or n == 0:
            return ss
        while n > 0:
            temp = ss[0]
            ss = ss[1:] + temp
            n -= 1
        return ss