Linked List-k Append

I am not able to figure out the case when K is greater than the N (Lenght of the linked-list). How to solve that case?

hello @nikhil015 there can be case when n is greater then n .
so in that case what you can simply do is that you can k=k%n;
and you have to append at that position .
mark the doubt as resolved if your doubt is cleared.
Happy Learning !!