The two possibilities when the peroxide is not present
≡ →
+ HBr →
In presence peroxide,
≡+ HBr →
When peroxides are present in the reaction mixture, hydrogen bromide adds to the triple bond of heptane with regioselectivity.
This reaction is opposite to that of Markovnikov's rule which says that when asymmetrical alkene reacts with a protic acid HX, then the hydrogen of an acid is attached to the carbon with more in number of hydrogen substituents, and the halide (X) group is attached to the carbon with more in number of substituents of alkyl.