• + 0 comments

    Just wanted to ask how do you came up with the one line solution to the problem.

    System.out.println(a[(n - (k % n)+ m) % n]);