Why am i getting run error ? Test case is working fine!

why am I getting run error ?? The test case is working fine!

hello @Arnav7

image
value of k can be greater than n so first do
k=k%n
and then apply ur logic

I applied it but now getting error in one test case ! please help me out !

please share ur code using cb ide

Here is my code -> https://ide.codingblocks.com/s/294452

if new value of k is 0.
then print the same list.