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