Rotate a list to the right by a given number of steps.
Constraints
Example
>>> rotate_right([1, 2, 3, 4, 5], 2) [4, 5, 1, 2, 3] >>> rotate_right([1, 2, 3], 5) [2, 3, 1] >>> rotate_right([], 10) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints