In first step of the reaction H+ will attack on the lone pairs of electrons of the oxygen atom. Which will get dehydrated forming carbocation intermediate. On this carbocation pi bond will attack forming a five membered cyclic ring. In last step Br− will combine with carbocation forming final product according to the following reactions.





