Merge sorted linked lists

All of my test cases are failing.Please tell me where the code is going wrong.