add solution for problem: RotateList