Example 1
rotateArrayRight()Input
nums = [-6, 12, 8, 20, 14, -1, -9, -5, 9, 9, -16, 10, 16, 0, 14, -20], k = 3Output
[0, 14, -20, -6, 12, 8, 20, 14, -1, -9, -5, 9, 9, -16, 10, 16]Why
`rotateArrayRight` returns `[0, 14, -20, -6, 12, 8, 20, 14, -1, -9, -5, 9, 9, -16, 10, 16]` for this input.