Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange nodes in a singly linked list such that all nodes with negative values appear before positive values.

Run the code to see the output here...