Given an array, rotate the values clockwise by one (the last value is sent to the first position).
Check the examples for a better understanding.
rotateByOne([1, 2, 3, 4, 5]) β [5, 1, 2, 3, 4]
rotateByOne([6, 5, 8, 9, 7]) β [7, 6, 5, 8, 9]
rotateByOne([20, 15, 26, 8, 4]) β [4, 20, 15, 26, 8]
N/A