Cant pass one test case!

hello @haseebshaik00
first do this->
k=k%n
and then apply ur logic

stiil cant pass the test case!!!

check now->