Reordering LinkedList for LeetCode