Linked List K append


please check the code i’m not able to pass 3 test cases .

Disha, pls include the condition when k is greater than n,
Thus include the following lines of code as well,
k=k%n;
if(k==0)
{
print(head);
}
else
{
kAppend(head,k);
print(head);
}