This problem is pretty easy.
Give you a matrix make up with uppercase and lowercase.
You just make horizontal and vertical flip.
There are muti-case.
For each case, there are two integers N, M. ( 0 < N, M <= 500)
And then, there are N lines, and M rows.
For each case, print the new matrix.