When k is greater than N

when k is greater than n what do i have to return is it NULL or same link list or keep rotating till k becomes zero

when k is greater than n same lists keeps rotating, thats why we do k = k%n, since after n appending list reaches its initial state they can be ignored only k%n appendings matter.