link: https://ide.codingblocks.com/s/238629
if k > sze of input linked list then your code will fail
so do k%=n ;
required update