• + 1 comment

    This does the rotation in place. 1 line solution.

    for (int i = d; i < d + n; i++) Console.Write($"{a[i%n]} ");