K Append in Linked List

2 test cases are showing wrong answer