None of the test case is running

@Varun_a19 your output format is not matching the given sample output

i have altered the output format still 4 test cases are not running.

@Varun_a19 You have to consider the cases where k >=n . Just do k = k%n to make the value of k smaller than n, and the code should work fine. It is also not working for k = 0, so you will have to handle that case separately as well. https://ide.codingblocks.com/s/270119 this code should pass all test cases

Dont forget to mark it as resolved!