Solution for Rootate List.