Run error in 1st test case:Kth element from last linked list

hey @kamya, in line no 55, make while(x!=NULL) instead of while(x->next!=NULL) .,. Also remove the line 60. I have made these changes to your code. You can check them here https://ide.codingblocks.com/s/109784