You are given two linked lists: list1 and list2. Remove list1's nodes from the a-th node to the b-th node and insert list2 into that position.
Click Run to execute sample tests.