Given an array with N elements, the task is to rotate the array to the left by K steps, where K is non-negative.
The first line contains an integer N representing the size of the array.
The second line contains N space-separated integers representing the elements of the array.
The last line contains an integer K representing the number of times the array has to be rotated in the left direction.
The only line of the output prints N space-separated integers representing the Rotated array elements.
1 <= N <= 10^3
1 <= arr[i] <= 10^9
1 <= K < N