C# LINQ one-liner
csharp\npublic IList<int> MostVisited(int n, int[] rounds) => rounds[0] <= rounds[^1]\n    ? Enumerable.Range(rounds[0], rounds[^1] - rounds[0] + 1).ToArray()\n
```csharp\npublic IList<int> MostVisited(int n, int[] rounds) => rounds[0] <= rounds[^1]\n    ? Enumerable.Range(rounds[0], rounds[^1] - rounds[0] + 1).ToArray()\n    : Enumerable.Range(1, rounds[^1]).Concat(Enumerable.Range(rounds[0], n - rounds[0] + 1)).ToArray();\n```
[]