List k append.........not passing all the test cases ? please help

since after n appendings list comes to its initial state, after receiving k replace it by k%n and if k == 0 print head else call append function

didn’t understood this ;(

is this for the case when k>n ??

yes. it is for cases when k > n