Topic: Linked List Problem / Level: advanced

Problem: Implement a function to split a sorted doubly linked list into two lists where one list contains nodes divisible by 2 and the other divisible by 3.

Run the code to see the output here...