Regarding k append linked list

https://online.codingblocks.com/player/14796/content/4856?tab=submissions
https://ide.codingblocks.com/s/58519
please tell whats wrong in the code its failing test case 3 and 4

Hey Kushagra, your code will not give the correct answer when k > n. So, update your code for this case as if k >= n then k=k%n;