You don't need to read input or print anything. The task is to complete the function intersetPoint() which takes the pointer to the head of linklist1 and linklist2 as input parameters and returns data value of a node where two linked lists intersect. If linked list do not merge at any point, then it should return -1. Challenge : Try to solve the problem without using any extra space.
Expected Time Complexity: O(N+M) Expected Auxiliary Space: O(1)