Intersection point of two linked lists

my code is correct but its not getting submitted
here id my code-Intersection point of two linked lists

Yes, your code seems correct. But the input and output format is not how you’re expecting it to be(it should have been cleared in the question.)
Take the sample input of format:
682 648 915 815 283 935 492 556 747 659 789 276 835 784 320 229 559 195 127 37 360 174 689 732 707 253 3 -1
138 938 187 501 881 22 873 988 172 49 606 4 784
Here -1 marks the end of the first linked list and everything after that represents linked list two, the output of this test case should be of format
L1 - 682 648 915 815 283 935 492 556 747 659 789 276 835 784 320 229 559 195 127 37 360 174 689 732 707 253 3
L2 - 138 938 187 501 881 22 873 988 172 49 606 4 784 320 229 559 195 127 37 360 174 689 732 707 253 3
Intersection at node with data = 784
You can check out this code for reference.