Rotate the array by the offset to the right. The offset is upper bounded by the length of the input array.