Array rotation?

What exactly is array rotation? You didn’t teach us this. Plus after searching on google it means shifting the array to the left or to the right, by a given number of elements. You taught us nothing of this sort plus it’s not clear even in the question exactly what sort of array rotation is this.

@gagan123malik123 here array rotation means say k elements have been lifted from the end and moved to the front .so 1 2 3 4 5 if rotated for 2 elements lifts 4 5 to form 4 5 1 2 3.it was to be noticed frm the given sample test case.