Merge 2 sorted LL ? showing time limit exceeded and small output wrong ? please tell the mistake

Your code doesn’t take input in accordance with the Input format.

it is showing output but a bit wrong

Please give the new solution link.