Rotate the list to the right by k places: the last k nodes move to the front (in order).
Input
kOutput: the rotated list's values, space-separated.
1 2 3 4 5 2
4 5 1 2 3
0 1 2 4
2 0 1
k=4 on length 3 is k=1.
Run your code against the sample tests, or Submit to run the full suite.