The correct option is B B>A
−I and −Br are electron withdrawing group. Therefore, it will decrease the stability of the carbocation.
more is the electronegativity of atom attached to the carbon more it will show -I effect and more it destablise the carbocation. Electronegativity order of atom is Br>I
Therefore, the order of stability of carbocation is:
(CH3−CH2−C|BrH−+CH−CH3<CH3−CH2−C|IH−+CH−CH3
Hence B is the correct option.