• + 0 comments

    a[(n - (k % n)+ m) % n]

    can u elaborate how this idea come to ur brain