Even after odd linkedlist question

Three testcase passes but but showing runtime error in testcase2.
This is the link of my code
https://ide.codingblocks.com/s/133010https://ide.codingblocks.com/s/133010