Test Cases are not getting passed (" Linked List -K Append ")

What should be the output of the code when the value of K is greater than n . I am here by attaching the link of the code please debug it or provide me with the appropriate solution .
Link :- https://ide.codingblocks.com/s/130855

if k is greater than n then just do
k=k%n

try running your code if error persists notify

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.