https://ide.codingblocks.com/s/270515.
please tell the error in my code
What is the problem in my code and how k can be greater then n
hi @jatin_wadhwa to handle the case of k > n, you can simply do k = k % n to bring the value of k to be less than n.