Complete the matrixRotation function in the editor below. It should print the resultant 2D integer array and return nothing.
matrixRotation has the following parameter(s):
matrix: a 2D array of integers
r: an integer that represents the rotation factor
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 .
Print each row of the rotated matrix as space-separated integers on separate lines.