Perform Queries
for i in range ( Q ) : NEW_LINE INDENT update ( D , Queries [ i ] [ 0 ] , Queries [ i ] [ 1 ] , Queries [ i ] [ 2 ] , Queries [ i ] [ 3 ] , Queries [ i ] [ 4 ] ) ; NEW_LINE DEDENT printArray ( A , D ) ; NEW_LINE