Why my all test case is not passing

@ayushwahi3005 your output is wrong for cases where k > n.
You can simply do k = k%n in the beginning

thanku not its working

1 Like

@ayushwahi3005 dont forget to mark your doubt as resolved!

yess I have done it already

1 Like