Topic: Linked List Problem / Level: intermediate

Problem: Write a function to split a doubly linked list into two separate lists where one contains even-positioned nodes and the other contains odd-positioned nodes.

Run the code to see the output here...