void rotateByOne(int arr[])
{
int i, last;
// Storing last element of array
last = arr[size - 1];
for(i=size-1; i>0; i--)
{
// Moving each array element to its right
arr[i] = arr[i - 1];
}
// Copying last element of array to first
arr[0] = last;
}