sir ,
for the test case:
9 3
9 4 1 7 8 3 2 6
Output
1 4 9 3 8 7 6 6 2
As you can see 6 is repeating twice …because n is not a multiple of k in this case , but i have cleared all the test cases for this question .
I am not getting what is wrong in my code ,could you please help