Whats the error?

Your code will not work when the number on nodes in the linked list is even.

sir i have checked and corrected but result is still same