rotate takes as argument a list and an integer n (by
default n=-1).
rotate rotates the list by n places to the left if n>0
or to the right if n<0. Elements leaving the list from one
side come back on the other side.
By default n=-1 and the last element becomes first.
Input :
Output :
Input :
Output :
Input :
Output :