• + 0 comments

    if % is not given the value of (n+i-d) may exceed the array length so after % operator the value lies in the range of array length