Topic: Linked List Problem / Level: advanced

Problem: Write a function to split a singly linked list into two lists, one containing nodes with even-indexed values and the other with odd-indexed values.

Run the code to see the output here...