Add solution to RotateList.