given a strings s and int k return a string that rotates k times k can be any positive integer for example rotatehello 2 return llohe rotatehello 5 return hello rotatehello 6 return elloh rotatehello 7 return llohe rotatehello 102 return lohel
def rotate(s, k):
    long_string = s * (k // len(s) + 2)
    if k <= len(s):
        return long_string[k:k + len(s)]
    else:
        return long_string[k-len(s):k]
    
def rotate_alt(string, k):
    k = k % len(string)
    return string[k:] + string[:k]