Topic: Linked List Problem / Level: advanced

Problem: Write a function to rotate a circular doubly linked list such that every third node becomes the new head while preserving the structure of the sibling pointers.

Run the code to see the output here...