Question
Question: What is the major product obtained in the following reaction? 
The complete mechanism is that when ammonia comes the bromine will leave that position as Br− . This will leave us with phenyl carbocation and thus the −NH2 is added at that position.
Note:
Another explanation for the bromine attached to the benzene ring not participating in the reaction is that the Bromine-carbon bond will have a partial double bond character due to resonance. Thus it is energetically more expensive to break that bond and form the desired product. Thus that particular bromine does not take part in the reaction.