A Simple C# Solution
\n\n# Code\n\npublic class Solution \n{\n    public void Rotate(int[] nums, int k) \n    {\n            k = k % nums.Length;\n            Array.Reverse(nums);\n
\n\n# Code\n```\npublic class Solution \n{\n    public void Rotate(int[] nums, int k) \n    {\n            k = k % nums.Length;\n            Array.Reverse(nums);\n            Array.Reverse(nums, 0, k);\n            Array.Reverse(nums, k, nums.Length-k);\n    }\n}\n```
['C#']