Rotate an array of _n_ elements to the right by _k_ steps.
For example, with _n_ = 7 and _k_ = 3, the array
[1,2,3,4,5,6,7] is rotated to
Try to come up as many solutions as you can, there are at least 3 different ways to solve this problem.
Could you do it in-place with O(1) extra space?