why every test case is not passing
@Avishek-Kumar-2445349249011561 use k=k%n when k is greater than n ,it will pass cases.