You are given an array of N length. You have to rotate the array rightwards by K rotations, that is, shift each element to the right by K positions. Print the rotated array.
First line contains N and K.
Second line contains N integers denoting the array.
Print the array after the rotation.
1 <= N, K <= 100000
1 <= Arr[i] <= 10^9
Dcoded By: Saurav Chandra
Solved By: 1149
Maximum Marks: 6