Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange nodes in a doubly linked list such that all even-positioned nodes come before odd-positioned nodes.

Run the code to see the output here...