Topic: Linked List Problem / Level: intermediate

Problem: Write a function to reverse every k nodes in a doubly linked list, but preserve the order of remaining nodes.

Run the code to see the output here...