Sample input-output when k is greater than n
Linked List k Append
you have to treat k>n as k%n
if n=5 and k=7 , k becomes k%n=2
so n=5 and k=2
1 Like
I hope your doubt is cleared . if yes donβt forget to mark it as resolved in my doubts section 
Thanks it worked for me