Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange nodes in a doubly linked list such that all nodes with values divisible by 3 appear before others.

Run the code to see the output here...