Flip matrix in left/right direction
Example
A=
The size of the input matrix is:
X