I was trying to do some questions on geeksforgeeks to prepare for the interviews. I was trying out To find the intersection of 2 sorted linked lists by recursion. But I am not too good with OOP concepts. I have been trying to find the error. Please help me in getting the answer.Here is the code. Please help me out.
Thanks in advance