add rotate list solution