Topic: Linked List Problem / Level: advanced

Problem: Write a function to split a sorted singly linked list into two lists where one contains nodes divisible by 3 and the other contains nodes divisible by 5.

Run the code to see the output here...