You are given an n x n 2D mat representing an image. Rotate the image by 90 degrees (clockwise).