Linked List-K Append

Please point out the problem in this code