You are given the head of a singly linked-list. Reorder the list so the nodes appear in the order L0 -> Ln -> L1 -> Ln-1 -> L2 -> Ln-2 ..., where you cannot modify the values in the nodes, only the nodes themselves.
Click Run to execute sample tests.