Given an M-by-N image, rotate it by 180 degrees.
The image can be stored in a two-dimensional character array.
For example, if 0 < M, N < 10, then the input image can be stored in
char image[10][10];
Each row of the image can be read using scanf("%s", image[i]);
The first line of input contains two integers M and N indicating the size of the image. M is the number of rows and N is the number of columns. (0 < M, N, < 10)
The next M lines contains the rows of the input image.
Each row is a string of N characters.
The output shows the result of rotation. (The input image is rotated by 180 degrees.)
The output contains M rows. Each row is a string of N characters. Each line has a newline character at the end.