my 3 test cases are not passing and what to do if k>n?
@varu when k > n do k = k%n also make sure that your code is running for k = 0