I try to solve it with python in a simple way:

```
class Solution:
# @param nums, a list of integer
# @param k, num of steps
# @return nothing, please modify the nums list in-place.
def rotate(self, nums, k):
n = len(nums)
return nums[n-k:n]+nums[:n-k]
```

However the solution I got is different from online. For example, [1,2], 1

Where I got is [2,1], but the judger got [1, 2]