Write a program to rotate a hardcoded array to the right by a given number of steps.
MediumProblem Statement
Write a program to rotate a hardcoded array to the right by a given number of steps.
Sample Input
Array: [1, 2, 3, 4, 5], Steps: 2
Sample Output
Rotated Array: 4, 5, 1, 2, 3
Limits
Time: 2s · Memory: 256 MB