When query type is 2
else : NEW_LINE INDENT a [ query [ i - 1 ] [ 1 ] ] = query [ i - 1 ] [ 2 ] NEW_LINE pos = query [ i - 1 ] [ 1 ] NEW_LINE new_val = query [ i - 1 ] [ 2 ] NEW_LINE update ( 1 , 0 , n - 1 , pos , new_val ) NEW_LINE DEDENT