Linked list k append


only 1 test case is correct
and rest 3 are giving wrong answer
kindly figure out the error