Given two linked lists, your task is to complete the function mergeList() which inserts nodes of second list into first list at alternate positions of first list.
First line of input contains number of testcases T. For each testcase there will be 4 lines. First line consists of the length of the first linked list, next line contains elements of the linked list. Third line contains length of another linked list and next line contains elements of the linked list.
For each test case first print space separated vales of the first linked list, then in the next line print space separated values of the second linked list.
The task is to complete the function mergeList() which should merge the two lists as required.