Example 1
rotateArrayRight()Input
nums = [9, 4, -20, 6, 19, 1, 13, 5, 2, -13, 6, -4, -18, 0, 13, -14, 5, 3, -11, 4, 10], k = 13Output
[2, -13, 6, -4, -18, 0, 13, -14, 5, 3, -11, 4, 10, 9, 4, -20, 6, 19, 1, 13, 5]Why
`rotateArrayRight` returns `[2, -13, 6, -4, -18, 0, 13, -14, 5, 3, -11, 4, 10, 9, 4, -20, 6, 19, 1, 13, 5]` for this input.