Given a Linked List, find the element at the kth position.
List: 1→3→4→7
k: 2
Answer: 3
The first line contains ‘T’ denoting the number of independent test cases.
For each test case the input has three lines:
For each test case, the output has one line with space-separated integers.
2
4
1 3 4 7
2
3
4 5 6
1
3
4
1 <= T <= 100
1 <= n <= 1000
1 <= k <= n
1 <= element <= 1000