Topic: Linked List Problem / Level: intermediate

Problem: Write a function to rearrange a linked list such that even and odd indexed nodes are in alternate positions.

Run the code to see the output here...