Only passing two test cases


please check my code what is wrong

@Gaurav_dev there were two things that are not mentioned but are expected as per test cases.
for k==n you have to print link list as it is and for k>n k=k%n


corrected the code
dont forget to mark the doubt resolved and hit like if cleared :smiley: