Solution for Rotate List