C# Concise
csharp\npublic class Solution\n{\n    public int MinimumRightShifts(IList<int> nums)\n    {\n        var shifts = 0;\n\n        for (var i = 1; i <= nums.Count;
```csharp\npublic class Solution\n{\n    public int MinimumRightShifts(IList<int> nums)\n    {\n        var shifts = 0;\n\n        for (var i = 1; i <= nums.Count; i++)\n            if (nums[i - 1] > nums[i % nums.Count])\n                shifts = shifts == 0 ? nums.Count - i : -1;\n\n        return shifts;\n    }\n}\n```
['C#']