What to do in case k>n?

Can you let me what is the mistake in my code , that it was giving TLE (later wrong ans)for three testcases

@anushreemahur5 for k=n print linklist as it is and for k>n you have to do k=k%n
i hope your doubt is cleared if yes dont forget to mark it as resolved :smiley: