Write the method rotateRight that takes an array of integers and rotates the contents of the array to the right by two slots. Numbers that fall off the right should cycle back to the left. For example, if the input array is {1, 3, 5, 7} then the rotated array should be {5, 7, 1, 3}. If the input array is {1, 2, 3} then the rotated array should be {2, 3, 1}.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.