Rotate image(n*n array)

sir what is the mistake in my code

Have you submitted your code?
Is it giving Run Error or wrong answer?