Some testcase are showing run time error

this is code for linked list (k-append) problem

@Rajan_42
for k>n you have to do k=k%n and for k==n print link list as it is