mutate and rotate the given array by the specified amount to the right.
given an array arr, this function would rotate its rows by the specified amount.
a positive amount would rotate the rows to the right, and a negative amount would rotate it to the left.
mutate and rotate the given array by the specified amount to the right.
given an array
arr, this function would rotate its rows by the specifiedamount. a positiveamountwould rotate the rows to the right, and a negativeamountwould rotate it to the left.