Rotate image (n x n)


why is this not passing all the testcases?