Code not working please check the function

hi @rudradatta3 please share the whole code and please share the logic which you are using as I am unable to understand it.

@rudradatta3 to find the kth node from the end, you can simply calculate the number of nodes, and return the (n - k + 1) th node from the starting.