Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange a singly linked list such that nodes with even values appear before nodes with odd values.

Run the code to see the output here...