Topic: Linked List Problem / Level: intermediate

Problem: How do you rearrange nodes in a doubly linked list so that all odd nodes appear before even nodes?

Run the code to see the output here...