static int [] shift(int arr[]){
    	int lastElement=arr[(arr.length-1)];
    	
    	for (int count=(arr.length-1);count>0;count--){
    		arr[count]=arr[count-1];
    	}
    	
    	if(arr.length>=1)
    	arr[0]=lastElement;
    	
    	return arr;
    }