Please explain the working of a

As a is not updated so in recursive call so how the base case is hit in this particular situation please explain

Hey @the.shubham.sri, You were not accessing the data of the node when you were first trying to find the head of the merged list.
I have updated the code please refer to it.

Hope it helps :blush: .
If your doubt is now resolved please mark it as resolved and rate me accordingly .
Else you can further questions here .
Thankyou