Only three test cases are running i have also considered the case whrere k>n

for k>n do k=k%n @Varun_a19

still one test case is not running sir

@Varun_a19 check for k==n you have to print linklist as it is
otherwise share your code if after this error remains