Getting WA in three TCs

que- Linked list-K Append
here is my solution

hello @Akdas
first take
k=k% n and then apply ur algorithm (this is done to make k less than n)