LeetCode Solution, Medium, 61. Rotate List