Python Long Dumb Approch


#1
def rotateArray(self, a, b):
    pivot = b % len(a)
    ret = []
    for i in range(pivot,len(a)):
        ret.append(a[i])
    for j in range(0,pivot):
        ret.append(a[j])
    return ret``