Palindrome linked list - leetcode

ques->https://leetcode.com/problems/palindrome-linked-list/

ide->https://ide.codingblocks.com/s/206584
what is it that I am doing wrong?

You did not made a new copy, you just reversed the original linked list.