Incorrect output (Linked list - Palindrome)

question link - https://hack.codingblocks.com/app/contests/1171/247/problem

I am unable to identify my mistake.
Function to reverse linked list is working fine but the output is coming true for every case.

my code - https://ide.codingblocks.com/s/289553

node* reversedLL(node* &head)
You need to pass head by reference not by value else change wont get reflected.
Hope it clears your doubt!!

I corrected that…but still it is showing true for all the cases…