# Array Rotator ## Single File Programming Question ## Problem Statement Goutham is given the task of developing a program that efficiently shuffles the elements of an array. He wants to create an ArrayRotator class with a constructor that takes an array and the number of positions to rotate to the right. Users input the array size and elements, specify the rotating positions, and print the rearranged sequence. Assist Goutham in developing the program. #### Input: ``` format : ``` The first line of input consists of an integer N, representing the elements of the array. The second line consists of N space-separated integers representing the array elements. The third line consists of an integer M, representing the number of positions to rotate. #### Output: ``` format : ``` The output prints the rearranged array elements as space-separated integers. Refer to the sample output for formatting specifications. Code constraints : The given test cases fall under the following constraints: 1 ≤ N ≤ 10 1 ≤ array elements ≤ 100 M < N Sample test cases : #### Input 1: ``` 7 3 6 9 8 5 2 1 3 Output 1 : 5 2 1 3 6 9 8 Input 2 : 5 63 95 74 65 98 1 Output 2 : 98 63 95 74 65 Footer Snippet 12345678910 ```