Rotate the array nums to the right by k steps and return it.
Input
numsk (k ≥ 0)Output: the rotated array, space-separated.
1 2 3 4 5 6 7 3
5 6 7 1 2 3 4
-1 -100 3 99 2
3 99 -1 -100
Run your code against the sample tests, or Submit to run the full suite.