rewrite leetcode reverse linked list rotate list set zeroes