Add solution rotateList.