shift takes as argument a list l and an integer n
(by default n=-1).
shift rotates the list to the left if n>0 or to
the right if n<0. Elements leaving the list from one side
are replaced by undef on the other side.
Input :
Output :
Input :
Output :
Input :
Output :