Given a Matrix of size M x N. Your task is to print the matrix K times left rotated.
First line consists of T test cases. First line of every test case consists of 3 integers, M, N, K. Second line of every test case consists of M*N spaced integers.
Single line output, print the M*N spaced integer rotated K times.
2 2 1
1 2 3 4
2 1 4 3
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.