Example 1
rotateArrayRight()Input
nums = [-20, 16, -20, 6, -15, -8, 10, -3, -9, 16, 11, -6, 10, 15, -18, -15, -17, -12, -15, 4, 5], k = 13Output
[-9, 16, 11, -6, 10, 15, -18, -15, -17, -12, -15, 4, 5, -20, 16, -20, 6, -15, -8, 10, -3]Why
`rotateArrayRight` returns `[-9, 16, 11, -6, 10, 15, -18, -15, -17, -12, -15, 4, 5, -20, 16, -20, 6, -15, -8, 10, -3]` for this input.