Wrong answer in test cases

i am getting wrong answer in some of the test cases
here is my code

hello @aditikandhway
value of k can be greater than n .
so first do k=k%n to make k less than n.
and then apply ur logic

still one test case has not passed

if k==0 after k=k%N
then print the same list .
otherwise use ur logic