def rotateImage(a):
    res = []
    a = a[::-1]
    for i in range(len(a)):
        ar = []
        for j in range(len(a)):
            ar.append(a[j][i])
        res.append(ar)
    return res

e52eb8ee561ec9635b1ebea3f0283532cac34620
<mask token>

def rotateImage(a):
    res = []
    a = a[::-1]
    for i in range(len(a)):
        ar = []
        for j in range(len(a)):
            ar.append(a[j][i])
        res.append(ar)
    return res
