Example 1
rotateArrayRight()Input
nums = [2, 5, -12, -5, -1, -7, 8, -6, -14, -8, 4, -5, -9, -7], k = 9Output
[-7, 8, -6, -14, -8, 4, -5, -9, -7, 2, 5, -12, -5, -1]Why
`rotateArrayRight` returns `[-7, 8, -6, -14, -8, 4, -5, -9, -7, 2, 5, -12, -5, -1]` for this input.