Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange a singly linked list such that all nodes with values less than k come before nodes with values greater than or equal to k.

Run the code to see the output here...