Palindrome Linked list

What is the problem with this code. Please check

Hey @Divyakharb i have updated your code along with comments. there was a small
mistake.
link : https://ide.codingblocks.com/s/228221

Hey the test cases are getting passes but if the input is :
5
1 2 3 5 1 then ans should be false i am getting true. Please check

yeah i checked it the problem is that after calling reverse function your original linklist is
becoming of size 1 so u have to store original linklist somewhere else here look at this -