Question: how to shift the element in the list

how to shift shift(1,[x,y,z]) = [y,z,x]

shift(2,[x,y,z]) = [z,x,y]

shift(3,[x,y,z]) = [x,y,z]

Please Wait...