rewrite leetcode reorder List