Topic: Linked List Problem / Level: advanced

Problem: Implement a function to reverse the first and last k nodes in a circular doubly linked list while leaving the middle unchanged.

Run the code to see the output here...