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
yess I have done it already
1 Like