Update the vectors such that v [ i ] will contain all the elements that give remainder as i when divided by k
for i in range ( n ) : NEW_LINE INDENT v [ arr [ i ] % k ] . append ( arr [ i ] ) NEW_LINE DEDENT