solution to Rotate List