• + 0 comments

    if b+1 > n then the the addition of k from position a will continue till the last element of the array.