The first step is diazotization reaction which form [X] which on further reaction with N,N− dimethylaniline gives product Y It attached to the para position as (N−(CH3)2) group is ortho-para activating group. Electrophilic addition takes place on para position.