Topic: Linked List Problem / Level: beginner

Problem: Write a function to rearrange a linked list such that all even-indexed nodes come before odd-indexed nodes.

Run the code to see the output here...