Topic: Linked List Problem / Level: intermediate

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

Run the code to see the output here...