Complete the matrixRotation function in the editor below.
matrixRotation has the following parameter(s):
int matrix[m][n]: a 2D array of integers
int r: the rotation factor
It should print the resultant 2D integer array and return nothing. Print each row on a separate line as space-separated integers.
The first line contains three space separated integers, , , and , the number of rows and columns in , and the required rotation.
The next lines contain space-separated integers representing the elements of a row of .