[LC] Added solution to rotate list.