Please tell the problem with the code?

image
in the q stmt
Note that K can be greater than N.

please tell what will happen if k is greater than n? we shouldn’t simply return without any changes?

no
u need to modify k within the length of linked list