Topic: Linked List Problem / Level: intermediate

Problem: How do you rearrange a doubly linked list so that all nodes with values less than a given value are before those greater than or equal to it?

Run the code to see the output here...