Challenge: Rotate List

Try to solve the Rotate List problem.

We'll cover the following...

Statement

You are given an integer list, nums, and a non-negative integer k. Your task is to rotate the list to the right by k steps.

In a right rotation, the last element moves to the front, and all other elements shift one position to the right.

Constraints:

  • 11 \leq nums.length ...