3 testacses not working

i cannot find the problem in my code. Please help in spooting the problem. https://ide.codingblocks.com/s/220811

since after n appendings linked list comes back to its initial state, after receiving k replace it with k%n,

okay thank you so much