Merge two sorted linked list

getting correct output on other ide but here it shows wrong answer

hi @aattuull the code is correct and is passing all the test cases. You can try submitting here https://hack.codingblocks.com/app/contests/1128/1090/problem