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