Linked List K Append

one test case is showing run error.Can u pls help me finding why?