I am not getting the correct ans

Below is the code for the Kth node from the last.

hey @harshulgarg21 line 92 condition should be
while(fast->next!=NULL)