Kth element from end of linked list

The code is showing run error for one testcase:

https://ide.codingblocks.com/s/210998 // code updated

k%=len needs to be added for the run time error to not occur

It shows run error even after submitting the updated code


check updated code
yr vo k%=len walla statement hata do